package BehavioralMode.interpreter.calculator;

/**
 * 数值表达式
 * */
public class Variable extends AbstractExpression{

    private String key;

    public Variable(String key) {
        this.key = key;
    }

    public String getKey() {
        return key;
    }

    @Override
    public int interpret(Context context) {
        return context.get(key);
    }
}
